import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '',
    //   name: 'login',
    //   component: () => import('@/views/login/LoginVue.vue')
    // },
	{
	  path: '/login',
	  name: 'login',
	  component: () => import('@/views/login/LoginVue.vue')
	},
	{
	  path: '',
	  name: 'home',
	  component: () => import('@/views/home/IndexVue.vue')
	},
	{
	  path: '/userList',
	  name: 'userlist',
	  component: () => import('@/views/user/UserListPage.vue')
	},
    {
      path: '/index',
      name: 'index',
      component: () => import('@/views/home/IndexVue.vue'),
      children: [
        {
          path: '',
          name: 'dashboard',
          component: () => import('@/views/home/components/DashboardPage.vue'),
        },
        {
          path: '/user-info',
          name: 'user-info',
          component: () => import('@/views/home/components/UserInfoPage.vue'),
        },
        {
          path: '/course',
          name: 'course',
          component: () => import('@/views/home/components/CoursePage.vue'),
        },
		{
		  path: '/map1',
		  name: 'map1',
		  component: () => import('@/views/group1/map1.vue'),
		},
		{
		  path: '/map2',
		  name: 'map2',
		  component: () => import('@/views/group1/map2.vue'),
		},
		{
		  path: '/map3',
		  name: 'map3',
		  component: () => import('@/views/group1/map3.vue'),
		},
		{
		  path: '/map4',
		  name: 'map4',
		  component: () => import('@/views/group1/map4.vue'),
		},
		{
		  path: '/map5',
		  name: 'map5',
		  component: () => import('@/views/group1/map5.vue'),
		},
		{
		  path: '/map6',
		  name: 'map6',
		  component: () => import('@/views/group1/map6.vue'),
		}
      ]
    }
  ]
})

export default router
